<?php
/**
 *
 * Learn more: http://codex.wordpress.org/Post_Formats
 *
 * @package Cryout Creations
 * @subpackage Nirvana
 */

if ( have_posts()  ) while ( have_posts() ) : the_post(); ?>
				<header class="page-header">
					<h1 class="page-title" style="border-bottom:1px #eeeeee solid;">
						<div class="page-title-text">
							<?php echo "Page Archives:"; ?>
							<span><?php the_title(); ?></span>
						</div>
					</h1>
				</header>
				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<?php if ( is_front_page() ) { ?>
						<h2 class="entry-title"><?php the_title(); ?></h2>
					<?php } else { ?>
						<h1 class="entry-title"><?php the_title(); ?></h1>
					<?php } ?>

					<div class="entry-content">
						<?php the_content(); ?>
						<div style="clear:both;"></div>
						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'nirvana' ), 'after' => '</div>' ) ); ?>
						<?php edit_post_link( __( 'Edit', 'nirvana' ), '<span class="edit-link"><i class="icon-edit"></i> ', '</span>' ); ?>
					</div><!-- .entry-content -->

					<!-- Google Map -->
					<?php if ( is_page("contact-us") ) : ?>
						<?php
							$map_path = get_template_directory_uri().'/google-map.php';
							
							echo '<div style="width:99.8%;height:580px;margin-top:0px;">';
								echo '<div style="float:left;width:100%;height:100%;border:solid 1px gray;">';
									echo '<iframe src="'.$map_path.'" style="width:100%;height:580px;" frameborder="0" name="frmMaps" id="frmMaps"></iframe>';
								echo '</div>';
							echo '</div>';
						?>
					<?php endif; ?>
					<!-- End Google Map -->

				</div><!-- #post-## -->

				<?php  //comments_template( '', true );
				endwhile; ?>
